<table>
       <tbody>
            <volist name="goodsList" id="list">
              <tr data-id="{$list[miner_id]}">
                <td class="sign" axis="col6">
                  <div style="width: 24px;"><i class="ico-check"></i></div>
                </td>
			 <td class="handle" >
                <div style="text-align:left;   min-width:50px !important; max-width:inherit !important;">
                  <span class="btn"><em><i class="fa fa-cog"></i>设置<i class="arrow"></i></em>
                  <ul>
                      <li><a href="{:U('Admin/World.Miner/addMill')}">添加矿机</a></li>
                      <li><a href="{:U('Admin/World.Miner/editMill',array('id'=>$list['miner_id']))}">编辑矿机</a></li>
                    <if condition="$list.type eq 1">
                        <!-- <li><a href="javascript:void(0);" onclick="publicHandle('{$list[miner_id]}','del')">删除商品</a></li> -->
                    </if>
                  </ul>
                  </span>
                </div>
              </td>
                <td align="center" axis="col0">
                  <div style="width: 50px;">{$list.miner_id}</div>
                </td>
                <td align="center" axis="col0">
                  <div style="text-align: left; width: 120px;"><if condition="$list[is_virtual] eq 1"><span class="type-virtual" title="虚拟兑换商品">虚拟</span></if>{$list.miner_name|getSubstr=0,33}</div>
                </td>
<!--                 <td align="center" axis="col0">
                  <div style="text-align: center; width: 100px;">{$catList[$list[cat_id]][cat_name]}</div>
                </td> -->
                <td align="center" axis="col0">
                  <div style="text-align: center; width: 100px;">{$list.miner_price}</div>
                </td>
                  <td align="center" axis="col0">
                      <div style="text-align: center; width: 100px;">{$list.token}</div>
                  </td>
                  <td align="center" axis="col0">
                      <div style="text-align: center; width: 100px;">{$list.min}</div>
                  </td>
                  <td align="center" axis="col0">
                      <div style="text-align: center; width: 100px;">{$list.max}</div>
                  </td><td align="center" axis="col0">
                  <div style="text-align: center; width: 100px;">{$list.multiple}</div>
              </td>

                  <td align="center" axis="col0">
                      <div style="text-align: center; width: 100px;">{$list.token_speed}</div>
                  </td>
                <td align="center" axis="col0">
                  <div style="text-align: center; width: 50px;">
                    <if condition='$list[is_on_sale] eq 1'>
                      <span class="yes" onClick="changeTableVal('world_miner','miner_id','{$list.miner_id}','is_on_sale',this)" ><i class="fa fa-check-circle"></i>是</span>
                      <else />
                      <span class="no" onClick="changeTableVal('world_miner','miner_id','{$list.miner_id}','is_on_sale',this)" ><i class="fa fa-ban"></i>否</span>
                    </if>
                  </div>
                </td>

                  <td align="center" axis="col0">
                      <div style="text-align: center; width: 50px;">
                          <if condition='$list[type] eq 2'>
                              <span class="yes"  ><i class="fa fa-check-circle"></i>是</span>
                              <else />
                              <span class="no" ><i class="fa fa-ban"></i>否</span>
                          </if>
                      </div>
                  </td>
                  <td align="center" axis="col0">
                      <div style="text-align: center; width: 60px;">
                      {$list.scrap_days}
                      </div>
                  </td>
                <!--<td align="center" axis="col0">-->
                <!--<div style="text-align: center; width: 50px; <if condition="$list.store_count elt tpCache('basic.warning_storage')">color:#D91222;</if> ">-->
                  <!--{$list.store_count}-->
                <!--</div>-->
                <!--</td>-->
                <td align="center" axis="col0">
                <div style="text-align: center; width: 50px;">
                  <input type="text" onKeyUp="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onblur="changeTableVal('world_miner','miner_id','{$list.miner_id}','sort',this)" size="4" value="{$list.sort}" />
                </div>
                </td>
                <td align="" class="" style="width: 100%;">
                  <div>&nbsp;</div>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
        <!--分页位置--> {$page}
		<script>

            // 点击分页触发的事件
            $(".pagination  a").click(function(){
                cur_page = $(this).data('p');
                ajax_get_table('search-form2',cur_page);
            });

			/*
			 * 清除静态页面缓存
			 */
			function ClearGoodsHtml(goods_id)
			{
				$.ajax({
						type:'GET',
						url:"{:U('Admin/System.System/ClearGoodsHtml')}",
						data:{goods_id:goods_id},
						dataType:'json',
						success:function(data){
							layer.alert(data.msg, {icon: 2});
						}
				});
			}
			/*
			 * 清除商品缩列图缓存
			 */
			function ClearGoodsThumb(goods_id)
			{
				$.ajax({
						type:'GET',
						url:"{:U('Admin/System.System/ClearGoodsThumb')}",
						data:{goods_id:goods_id},
						dataType:'json',
						success:function(data){
							layer.alert(data.msg, {icon: 2});
						}
				});
			}
            $("#goodsUrl").click(function(){
                var url = $(this).attr('data-url');
                layer.alert('http://'+window.location.host+url)
            });
        </script>
